package com.itheima.chapter01.branching;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.w3c.dom.ls.LSOutput;

import java.util.Scanner;

/*
        考试奖励
 */
public class demoif {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的考试成绩：");
        int score = sc.nextInt();
        if (score < 0 || score > 100) {
            System.out.println("您的成绩有误，请检查！");
        }
        if (score >= 90 && score <= 100) {
            System.out.println("奖励电动自行车一台");
        } else if (score >= 80 && score <= 89) {
            System.out.println("奖励自行车一台");
        } else if (score >= 70 && score <= 79) {
            System.out.println("奖励一个本");
        } else if (score >= 60 && score <= 69) {
            System.out.println("奖励一支笔");
        } else if (score >= 0 && score <= 59) {
            System.out.println("打一顿");
        }
    }


}
